import Vue from 'vue'
import axios from 'axios'

axios.defaults.baseURL = 'http://wanghongde.top:8888/api/private/v1'

axios.interceptors.request.use(function (config) {
    config.headers.Authorization = sessionStorage.getItem('token') || ''

    return config
})
Vue.prototype.$http = axios
